package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.common.PageParams;
import com.example.demo.entity.common.PageResult;
import com.example.demo.entity.common.AppResp;
import com.example.demo.entity.vo.DemoVO;
import com.example.demo.entity.po.Demo;

/**
 * <p>
 *  Service 接口
 * </p>
 *
 * @author javalaoniu
 * @since 2022-03-25
 */
public interface DemoService extends IService<Demo> {

    AppResp<PageResult<DemoVO>> page(PageParams<DemoVO> pageParams);

    AppResp<DemoVO> queryById(Long demoId);

    AppResp<Void> add(DemoVO demoVO);

    AppResp<Void> delById(Long demoId);

    AppResp<Void> modify(DemoVO demoVO);

}
